package thinkingJava.chapter10;

public class Parcel6 {
	private void internalTracking(boolean b) {
		if (b) {
			class TrackingSlip {
				private String id;
				TrackingSlip(String id) {
					this.id = id;
				}
				public String getId() {
					return id;
				}
			}
			TrackingSlip ts = new TrackingSlip("abcde");
			System.out.println(ts.getId());
		}
	}
	public void track() {
		internalTracking(true);
	}
	public static void main(String[] args) {
		Parcel6 p = new Parcel6();
		p.track();
	}
}
